/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package perso;

/**
 *
 * @author vendome
 */
public class Personne {
     private String nom;
  private int age;

  public Personne(String nom, int age)
  {
    this.nom = nom;
    this.age = age;
  }

  public String getNom()
  {
    return this.nom;
  }

  public void setNom(String val)
  {
    this.nom = val;
  }

  public int getAge()
  {
    return this.age;
  }

  public void setAge(int val)
  {
    this.age = val;
  }

     @Override
  public String toString()
  {
    String theStr;
    theStr = "Nom : "+this.nom+", Age: "+this.age;
    return theStr;
  }
}
